<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="收款单打印" />
<%@ include file="../inc/PrintTitle.jsp"%>
<head>
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doPrint(){
		ShowConfirm('确认框','确定开始打印吗？',340,80,"doPrintCallBack()");
	}
	function doPrintCallBack(){
		if(popRetVal!=null){
			document.getElementById("noPrinSpan").style.display="none";
			printContent("管理易-收据","${enterpriseInfo.doPrint}","${enterpriseInfo.printWidth}");
			document.getElementById("noPrinSpan").style.display="";
		}
	}
</script>
</head>
<body style="background-color:#FFFFFF">
<table width="100%" border="0"  align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td height="40px" align="center" class="FontLarge_Bold">${licenseInfo.enterpriseName} 收款单</td>
				</tr>
				<tr>
				  	<td class="FontSmall"><div align="right">NO.&nbsp;${record.businessBill.billCode}</div></td>
			 	</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" class="ListTable">
				<tr class="ListTrPrint">
			      	<td width="30%" class="FontSmall">收款日期：<fmt:formatDate value="${record.businessBill.orderDate}" pattern="yyyy-MM-dd"/></td>
					<td width="40%" class="FontSmall">付款单位：${record.clientName} ${record.businessBill.linkman}</td>
			      	<td width="30%" class="FontSmall"  align="left">经办人：${record.businessBill.managerName}</td>
				</tr>
				<tr class="ListTrPrint">
			      	<td class="FontSmall" colspan="3">摘要：结算款</td>
				</tr>
				<tr class="ListTrPrint">
					<td class="FontSmall">金额：${record.businessBill.cost}元</td>
					<td class="FontSmall">本次收款：${record.businessBill.imprest}元</td>
			      	<td class="FontSmall">尚欠款：${record.businessBill.cost-record.businessBill.imprest}元</td>
				</tr>				
		  </table>
		</td>
	</tr>
	
	<c:if test="${codeRule.printFoot!=null && codeRule.printFoot!=''}">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td class="FontSmall"><commonTag:parseEnterToBr source="${codeRule.printFoot}" /></td>
				</tr>
			</table>
		</td>
	</tr>
	</c:if>
	<tr id="noPrinSpan">
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td>
						<input type="button" id="printButton" class="Button" value="开始打印 " onClick="doPrint();">
						<input type="button" id="cancelButton" class="Button" value=" 退 出 " onClick="doCancel();">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>